import { PrimaryGeneratedColumn, Column, Entity } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '@/common/common/entity/base.entity';

@Entity({ name: 'sys_user_role' })
export class SysUserRole extends BaseEntity {
  @PrimaryGeneratedColumn()
  @ApiProperty()
  id: number;

  @Column({})
  @ApiProperty({ description: '用户ID' })
  userId: number;

  @Column({})
  @ApiProperty({ description: '角色ID' })
  roleId: number;
}
